package com.forenow.demo4;

public class Penguin extends Pet {

    @Override
    public void toHosipital() {
        this.setHealth(60);
    }

    @Override
    public void eat() {
        System.out.println("222222222222");
    }
    public void swimming(){
        System.out.println("swimming......");
    }
}
